wayland: Drop an unused api
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jul 2018 19:56:56 +0000 (15:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jul 2018 20:42:07 +0000 (16:42 -0400)
Nothing was calling gdk_wayland_drag_set_source_surface.

gdk/wayland/gdkdrag-wayland.c
gdk/wayland/gdkprivate-wayland.h

index d1c2de069c668f431295feb437099a9ca39b83fb..5c5e286764b63387a13390ef0cddc21c2127b2fb 100644 (file)
@@ -355,7 +355,7 @@ gdk_wayland_drag_create_data_source (GdkDrag *drag)
 }
 
 GdkDrag *
-_gdk_wayland_surface_drag_begin (GdkSurface          *surface,
+_gdk_wayland_surface_drag_begin (GdkSurface         *surface,
                                  GdkDevice          *device,
                                  GdkContentProvider *content,
                                  GdkDragAction       actions,
@@ -405,14 +405,3 @@ _gdk_wayland_surface_drag_begin (GdkSurface          *surface,
 
   return drag;
 }
-
-void
-_gdk_wayland_drag_set_source_surface (GdkDrag    *drag,
-                                      GdkSurface *surface)
-{
-  if (drag->source_surface)
-    g_object_unref (drag->source_surface);
-
-  drag->source_surface = surface ? g_object_ref (surface) : NULL;
-}
-
index 68bd84b4a5f067126083fe9f07edeba3f251bb24..206386b663c6daaa71e4bf690d026d6bfaacd028 100644 (file)
@@ -115,9 +115,6 @@ void             gdk_wayland_drop_set_source_actions       (GdkDrop
 void             gdk_wayland_drop_set_action               (GdkDrop               *drop,
                                                             uint32_t               action);
 
-void _gdk_wayland_drag_set_source_surface (GdkDrag    *drag,
-                                           GdkSurface *surface);
-
 void _gdk_wayland_display_create_surface_impl (GdkDisplay     *display,
                                                GdkSurface     *surface,
                                                GdkSurface     *real_parent,